$(document).ready(function(){
    var height1 = $(window).height()-10;
    $("#main_layout").attr("style","width:100%;height:"+height1+"px");
    $("#main_layout").layout("resize",{
        width:"100%",
        height:height1+"px"
    });
});